package com.pkx.cloud.fse7.dms.openrecord.service;

import com.pkx.cloud.fse7.dms.openrecord.entity.OpenRecord;
import com.pkx.cloud.mybatis.comn.BaseSev;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 服务类
 *
 * @author chenwg
 * @since 2020-10-14
 */
public interface OpenRecordService extends BaseSev<OpenRecord> {

    /**
     * 分页列表
     *
     * @param openRecord
     * @return
     */
    Page<OpenRecord> pageList(Page page, OpenRecord openRecord) throws ParseException;

    /**
     * 列表查询
     *
     * @param openRecord
     * @return
     */
    List<OpenRecord> listByEntity(OpenRecord openRecord);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    OpenRecord selectById(Long id);

    /**
     * 保存
     *
     * @param openRecord
     * @return
     */
    Boolean saveOpenRecord(OpenRecord openRecord);

    /**
     * 修改
     *
     * @param openRecord
     * @return
     */
    Boolean modify(OpenRecord openRecord);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    Map getByRecordAId(Long id);

    String getByRecordId(Long id);
}
